﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Usr.Repository.Entities
{
    /// <summary>
    /// 平台出库日志
    /// </summary>
    [Table("usr_PExwarehouseLog"), Comment("平台出库日志")]
    public class PExwarehouseLog : EfEntity
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        [Comment("商品ID")]
        public long GoodsId { get; set; }
        /// <summary>
        /// 规格ID
        /// </summary>
        [Comment("规格ID")]
        public long SizeId { get; set; }
        /// <summary>
        /// 出库数量
        /// </summary>
        [Comment("出库数量")]
        public long Quantity { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Comment("描述"),MaxLength(500)]
        public string Describe { get; set; }
        /// <summary>
        /// 关联订单
        /// </summary>
        [Comment("关联订单")]
        public long OrderId { get; set; }
        /// <summary>
        /// 关联订单商品ID
        /// </summary>
        [Comment("关联订单商品ID")]
        public long OrderGoodsId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateTime { get; set; }
    }
}
